package com.wanmait.employment.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.employment.entity.Address;
import com.wanmait.employment.entity.Company;

import java.text.ParseException;
import java.util.Date;
import java.util.List;


public interface CompanyService {
    PageInfo<Company> findAll(String companyName, Date value1, Date value2, int pageNum, int pageSize) throws ParseException;
    Integer updata(Company company);
    Integer delete(Integer id);
    List<Address> getProvince(int parentId);
    Integer resetpasswords(Integer id,String password);
    Integer register(Company company);
    Company login(Company company);
    Company selectOne(Integer id);
    Company findByFirmName(String firmName);

    Integer saveOrUpdate(Company company);

    PageInfo<Company> selectAll(String city, String companyType, String companyScale, String financingStage, int pageNum, int pageSize);
}
